package com.lznAdmin.web.controller;

import cn.hutool.core.lang.Dict;
import com.lznAdmin.system.controller.BaseController;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(value = "desc of class")
@RestController
public class MainController extends BaseController {


    @GetMapping("/list/search/projects")
    public Dict toHome1() {
        Dict set = Dict.create().set("id", 1).set("cover", "https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png")
                .set("title", "Alipay").set("description", "那是一种内在的东西， 他们到达不了，也无法触及的").set("status", "1")
                .set("updatedAt", "2018-07-26 00:00:00");
        return set;
    }

    @GetMapping("/home2")
    public String toHome2() {
        return "/view/console/console2";
    }
}
